/*
2021-11-20
https://www.acwing.com/problem/content/4076/
*/
#include<iostream>
#include<cstring>
#include<algorithm>

using namespace std;

int n;
int main()
{
    cin>>n;
    string a="I hate ",b="I love ";
    for(int i=1;i<=n;i++)
    {
        if(i&1) cout<<a;
        else cout<<b;
        if(i==n) cout<<"it";
        else cout<<"that ";
    }
    return 0;
}
 
